package com.kx.talk.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * friend_base
 * @author 
 */
public class FriendBase implements Serializable {
    /**
     * 主键  引用用户中心的id
     */
    private Long userId;

    /**
     * 好友策略的id
     */
    private Integer friendShipPolicyId;

    /**
     * 好友策略的问题
     */
    private String friendPolicyQuestion;

    /**
     * 好友策略的答案
     */
    private String friendPolicyAnswer;

    /**
     * 好友策略的密码
     */
    private String friendPolicyPassword;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private Long createId;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 修改人
     */
    private Long updateId;

    /**
     * 删除标志
     */
    private Integer isDelete;

    private static final long serialVersionUID = 1L;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getFriendShipPolicyId() {
        return friendShipPolicyId;
    }

    public void setFriendShipPolicyId(Integer friendShipPolicyId) {
        this.friendShipPolicyId = friendShipPolicyId;
    }

    public String getFriendPolicyQuestion() {
        return friendPolicyQuestion;
    }

    public void setFriendPolicyQuestion(String friendPolicyQuestion) {
        this.friendPolicyQuestion = friendPolicyQuestion;
    }

    public String getFriendPolicyAnswer() {
        return friendPolicyAnswer;
    }

    public void setFriendPolicyAnswer(String friendPolicyAnswer) {
        this.friendPolicyAnswer = friendPolicyAnswer;
    }

    public String getFriendPolicyPassword() {
        return friendPolicyPassword;
    }

    public void setFriendPolicyPassword(String friendPolicyPassword) {
        this.friendPolicyPassword = friendPolicyPassword;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Long updateId) {
        this.updateId = updateId;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FriendBase other = (FriendBase) that;
        return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getFriendShipPolicyId() == null ? other.getFriendShipPolicyId() == null : this.getFriendShipPolicyId().equals(other.getFriendShipPolicyId()))
            && (this.getFriendPolicyQuestion() == null ? other.getFriendPolicyQuestion() == null : this.getFriendPolicyQuestion().equals(other.getFriendPolicyQuestion()))
            && (this.getFriendPolicyAnswer() == null ? other.getFriendPolicyAnswer() == null : this.getFriendPolicyAnswer().equals(other.getFriendPolicyAnswer()))
            && (this.getFriendPolicyPassword() == null ? other.getFriendPolicyPassword() == null : this.getFriendPolicyPassword().equals(other.getFriendPolicyPassword()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateId() == null ? other.getCreateId() == null : this.getCreateId().equals(other.getCreateId()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUpdateId() == null ? other.getUpdateId() == null : this.getUpdateId().equals(other.getUpdateId()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getFriendShipPolicyId() == null) ? 0 : getFriendShipPolicyId().hashCode());
        result = prime * result + ((getFriendPolicyQuestion() == null) ? 0 : getFriendPolicyQuestion().hashCode());
        result = prime * result + ((getFriendPolicyAnswer() == null) ? 0 : getFriendPolicyAnswer().hashCode());
        result = prime * result + ((getFriendPolicyPassword() == null) ? 0 : getFriendPolicyPassword().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateId() == null) ? 0 : getCreateId().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUpdateId() == null) ? 0 : getUpdateId().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", friendShipPolicyId=").append(friendShipPolicyId);
        sb.append(", friendPolicyQuestion=").append(friendPolicyQuestion);
        sb.append(", friendPolicyAnswer=").append(friendPolicyAnswer);
        sb.append(", friendPolicyPassword=").append(friendPolicyPassword);
        sb.append(", createTime=").append(createTime);
        sb.append(", createId=").append(createId);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateId=").append(updateId);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}